<projects>
{foreach from=$projects item=project}
{assign var=index value=$project->getId()}
<project id="{$project->getId()}" title="{$project->getName()}" date="{$project->getCreationDate()}" users="{$users.$index}" />
{/foreach}
</projects>